# -*- coding: utf-8 -*-
from functools import reduce

def prod(L):
    def p(x,y):
        return x*y
    print(reduce(p,L))
prod([1,2,3,5])